#ifndef __PTHREADPOOL_H__

#define __PTHREADPOOL_H__

#include "taskqueue.h"

#define PTHREAD_NUM 100

typedef struct pthreadpool{
    taskqueue_t queue;
    pthread_t* index;
    int pthreadnum;
}pthreadpool_t;

void pthreadpool_creat(pthreadpool_t* q);
void pthreadpool_destroy(pthreadpool_t* p);
void pthreadpool_start(pthreadpool_t *p);
void* pthreadpool_handle(void* arg);


#endif

